﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using SmtpTestServer.DataObjects.Smtp;

namespace SmtpTestServer
{
	public partial class Service1 : ServiceBase 
	{
		private Server server;

		public Service1()
		{
			InitializeComponent();
		}

		protected override void OnStart(string[] args)
		{
			// Start listening for connections
			server = new Server();
			server.Start();
		}

		protected override void OnStop()
		{
			server.Stop();
		}
	}
}
